<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>注册结果</title>
</head>
<body>
  <%
     request.setCharacterEncoding("UTF-8");
     
     if(!"POST".equals(request.getMethod())){     
       response.sendRedirect("register.jsp");
     }
    %>
用户名：<%= request.getParameter("username")%><br>
密码：<%= request.getParameter("password")%><br>
性别：<%= request.getParameter("sex")%><br>
口味：<%= java.util.Arrays.toString(request.getParameterValues("tast"))%><br>
手机号码：<%= request.getParameter("phone")%><br>
小区：<%= request.getParameter("xiaoqu")%><br>
详细住址：<%= request.getParameter("address")%><br>
备注：<%= request.getParameter("beizhu")%><br>
  <hr>
  请求方式：request.getMethod()：<%=request.getMethod()%><br>

请求的资源：request.getRequestURI()：<%=request.getRequestURI()%><br>

请求用的协议：request.getProtocol()：<%=request.getProtocol()%><br>

请求的文件名：request.getServletPath()：<%=request.getServletPath()%><br>

请求的服务器的IP：request.getServerName()：<%=request.getServerName()%><br>

请求服务器的端口：request.getServerPort()：<%=request.getServerPort()%><br>

客户端IP地址：request.getRemoteAddr()：<%=request.getRemoteAddr()%><br>

客户端主机名：request.getRemoteHost()：<%=request.getRemoteHost()%><br>

</body>
</html>
